<?php

require_once "../include/connectionHandlers/database/Event.php";

class newEvent_controller
{

	public function __construct()
	{
		if(isset($_POST["addEventSubmit"])){
			if(isset($_POST["event_name"]))
			{
				$eventName = $_POST["event_name"];
	
				if($eventName != null && $eventName != ""){
					$event = new database\Event();
					$event->insert($eventName);
				}
			}
		}
	} 
}
?>